//
//  PCDApiHideWaitPanel.m
//  PCDBank
//
//  Created by lyy on 2021/3/17.
//  Copyright © 2021 DK. All rights reserved.
//

#import "PCDApiHideWaitPanel.h"
#import "PCDBankWebViewController.h"

@implementation PCDApiHideWaitPanel

- (void)handler:(id)data andContext:(PCDContext *)context ResponseCallback:(WVJBResponseCallback)responseCallback {
    
    NSDictionary *dictRes;
    if ([data isKindOfClass:[NSDictionary class]]) {
        dictRes = (NSDictionary*)data;
    }else{
        dictRes =(NSDictionary*)[data JSONValue];
    }
    
    PCDBankWebViewController *viewPage = context.viewController;
//	[PCDWaittingService hiddenForParent:viewPage.view];
    [viewPage.view showHBWait:NO isFullScreen:NO];
    NSString *success = [dictRes objectForKey:@"success"];
    if (![PCDUtil nilOrEmptyString:success]) {
        evaluateJavaScriptOnMainThread_quotes(self, [data objectForKey:@"success"],@"");
    }
}

@end
